# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        博智科技  
# Name:         demo1244
# Description:
# Author:       yzl
# Date:         2019-02-09
#-------------------------------------------------------------------------------


import datetime,time

d1 = datetime.datetime(2019,2,9)

d2 = datetime.datetime(2018,2,1)

print((d1 - d2).days)


d3 = datetime.datetime.now()
d4 = d3 + datetime.timedelta(seconds=-100)
print(time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(d3.timestamp())))
print(d3,d4)
print(d3 - d4)